export PATH := $(PATH):`go env GOPATH`/bin
export GO111MODULE=on
LDFLAGS := -s -w

build:
	cd website && npm install && npm run build && rm -rf ../internal/http/website && mkdir ../internal/http/website && cp -r dist/* ../internal/http/website
	go mod tidy
	env CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o bin/cloud-syncer .